package com.ktjiaoyu.t382.controller;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

public class HelloController extends AbstractController {
    private static final Logger LOGGER = LoggerFactory.getLogger(HelloController.class);

    /**
     * 重写父类方法
     */
    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
        LOGGER.info("Spring MVC 框架搭建成功，当前请求路径:{}", request.getRequestURI());
        return null;
    }
}